package org.cuit.lmq.domain.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.cuit.lmq.constants.enums.TextTypeEnum;
import org.cuit.lmq.domain.po.HomePage;

/**
 * @author Seon
 * @date 2023/3/15
 */
@Slf4j
@Data
@AllArgsConstructor
@NoArgsConstructor
public class HomePageVo {
    private Long id;
    /**
     * 热度
     */
    private Long heats;
    private String frontCover;
    private String title;
    private TextTypeEnum type;

    public HomePageVo(HomePage homePage) {
        this.id = homePage.getId();
        this.heats = homePage.getHeats();
        this.frontCover = homePage.getFrontCover();
        this.title = homePage.getTitle();
        this.type = homePage.getType();
    }
}
